@echo off
set M2=C:\Program Files\Java\others\HOME\apache-maven-2.2.1
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18

set Path=%JAVA_HOME%\bin;%M2%\bin;%Path%
set release-no=1.0
REM call mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=1.0 -DgroupId=com.foodservice -DartifactId=foodServApp -Dversion=1.0-SNAPSHOT


@if "%1" == "clean" goto clean
@if "%1" == "war" goto war

:war
@echo Building Food Cart application.
@echo.
call mvn package -Dmaven.test.skip=true -Drelease-no="%release-no%" 
goto end

:clean
@echo Cleaning Application.
@echo.
call mvn clean
goto end

